﻿HmJS.$Import('ui.calendar.DatePicker');
//HmJS.$Import('core.domready');

HmJS.register('demo.module.ui.calendar.datepicker.select', function ($ns) {
	var that = {};

	that.todo = function () {

		var DatePicker = $ns.ui.calendar.DatePicker;

		var pick = new DatePicker('inp', {
			format: '%b %d, %y'
		});

		$('click').addEvent('click', function (event) {
			event.stop();
			var date = Date.parse('Nov 12, 2012');
			pick.select(date);
		});

	};

	return that;
});
